package org.dromara.system.domain.bo;

import org.dromara.system.domain.SafetyMeasure;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 安全措施业务对象 safety_measure
 *
 * @author Lion Li
 * @date 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SafetyMeasure.class, reverseConvertGenerate = false)
public class SafetyMeasureBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 关联作业ID
     */
    private Long zyid;

    /**
     * 作业类型: 1-动火,2-受限空间,3-盲板抽堵,4-高处,5-吊装,6-临时用电,7-动土,8-断路
     */
    private Long zylx;

    /**
     * 序号
     */
    private String xh;

    /**
     * 安全措施内容
     */
    private String aqcsnr;

    /**
     * 是否涉及: 0-否, 1-是
     */
    private Long sfsj;

    /**
     * 确认人
     */
    private String qrr;

    /**
     * 签名图片
     */
    @NotBlank(message = "签名图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String qmtp;

    /**
     * 确认时间
     */
    private Date qrsj;


}
